package org.example.domain.strategy.service.rule.chain;

import lombok.Data;

@Data
public abstract class AbstractLogicChain implements ILogicChain{
    private ILogicChain nextChain;

    @Override
    public ILogicChain appendNext(ILogicChain logicChain) {
        this.setNextChain(logicChain);
        return logicChain;
    }

    @Override
    public ILogicChain next() {
        return this.getNextChain();
    }

    public abstract String ruleModel();
}
